home
diamond Go Premium
Data Engineering Path  ·  Data Modelling
UBER & RIDE-SHARING CASE STUDY

Step 2: Entity Identification (Uber)

To capture the complex ride-dispatch ecosystem, we define 7 core tables:

🔹 RIDERS — Customer Accounts
Attribute Data Type Description
rider_id INT, PK Primary Key
first_name VARCHAR Attribute
last_name VARCHAR Attribute
email VARCHAR, UNIQUE Attribute
rating DECIMAL Attribute
🔹 DRIVERS — Service Partners
Attribute Data Type Description
driver_id INT, PK Primary Key
first_name VARCHAR Attribute
last_name VARCHAR Attribute
license_number VARCHAR Attribute
status ENUM: 'offline', 'active_idle', 'on_trip' Attribute
rating DECIMAL Attribute
🔹 VEHICLES — Fleet Data
Attribute Data Type Description
vehicle_id INT, PK Primary Key
driver_id INT, FK Link to driver
plate_number VARCHAR Attribute
model VARCHAR Attribute
color VARCHAR Attribute
🔹 TRIPS — Core Lifecycle Log
Attribute Data Type Description
trip_id INT, PK Primary Key
rider_id INT, FK Foreign Key
driver_id INT, FK, NULL Null until accepted
pickup_lat & pickup_lng DECIMAL Attribute
drop_lat & drop_lng DECIMAL Attribute
status ENUM Attribute
fare DECIMAL Attribute
requested_at TIMESTAMP Attribute
🔹 PAYMENTS — Financial Log
Attribute Data Type Description
payment_id INT, PK Primary Key
trip_id INT, FK Foreign Key
payment_method ENUM: 'cash', 'card', 'wallet' Attribute
amount DECIMAL Attribute
status ENUM: 'pending', 'completed', 'failed' Attribute
lock

This content is reserved for Premium Members.

Upgrade to Premium

Entity Details

Create New Item

help

Submit Technical Query

Have a question or run into an issue? Describe it below, upload an optional screenshot, and our engineering team will answer it!

image Attach image (optional)

Submit Feedback

build Free Developer Utility Free Tool
gavel

Privacy & Legal Disclaimer

1. Client-Side Browser Processing

All utility tools on DeepEngineerHub (including Image to PDF, Text Formatters, JSON Converters, and Encryptors) execute 100% locally within your client browser using WebAssembly and JavaScript. No uploaded images, text, or documents are transmitted, collected, or stored on remote servers.

2. Limitation of Liability ("As-Is" Provision)

Tools and services are provided free of charge for convenience and educational purposes "as-is" without warranties of any kind. DeepEngineerHub shall not be held liable for any data loss, formatting inconsistencies, or indirect damages resulting from tool usage.

3. Open Source & Third-Party Software

Certain utilities utilize open-source client libraries (such as jsPDF, Mermaid.js, Pyodide) licensed under MIT, Apache, or BSD open licenses. All intellectual property remains with their respective copyright holders.